x86: misc adjustments to acpi-cpufreq
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Feb 2009 18:13:55 +0000 (18:13 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Feb 2009 18:13:55 +0000 (18:13 +0000)
commitb30f1137e5655f7cad9d4d29374303d4818dcae8
tree3f28b783e8bd9a813eb4cd1e402c3dcc265e9a7d
parent7beb0a2feb28edd96fa055b28752ebe948106c4d
x86: misc adjustments to acpi-cpufreq

Avoid the call to check_freq() by default, since that function may
spin up to 1ms on certain systems without indicating any kind of severe
failure. This matches similar behavior in Linux.

Avoid doing a cross processor call in get_cur_val() if the current CPU
has its bit set in the mask passed in. Also use the local variable
'cpu' consistently, allowing to remove another local variable.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/acpi/cpufreq/cpufreq.c